package com.ai.langchain4j;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.context.annotation.Bean;

/**
 * @author 林
 * @create 2025-06-24 9:57
 */
@SpringBootApplication
public class AiLangChain4jApplication {

    public static void main(String[] args) {
        SpringApplication.run(AiLangChain4jApplication.class);
    }


//    @Bean
//    public TomcatServletWebServerFactory tomcatFactory() {
//        return new TomcatServletWebServerFactory() {
//            @Override
//            protected void postProcessContext(org.apache.catalina.Context context) {
//                // 禁用APR
//                ((org.apache.catalina.core.StandardContext) context).setAprConnector(false);
//            }
//        };
//    }
}
